package com.itdachang.devops.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class ProbeController {

    @GetMapping("/startupProbe")
    public String startupProbe(){
        log.info("startupProbe   OK");
        return "startupProbe   OK";
    }

    @GetMapping("/readinessProbe")
    public String readinessProbe(){
        log.info("readinessProbe   OK");
        return "readinessProbe   OK";
    }

    @GetMapping("/livenessProbe")
    public String livenessProbe(){
        log.info("livenessProbe   OK");
        return "livenessProbe   OK";
    }
}
